﻿@using WaterRegimenMonitor.Common
@using WaterRegimenMonitor.Web.Models
@using WaterRegimenMonitor.Web.DataModel
@using WaterRegimenMonitor.Web.Domain
@using Telerik.Web.Mvc.UI
@{
    ViewBag.Title = WaterRegimenMonitor.Web.Properties.Resources.TITLE_NEWLYREPORT;
    Layout = "~/Views/Shared/MainLayout.cshtml";

    //用于保存组织结构信息
    List<string> organizationModels = new List<string>();

    //查询测站信息
    foreach (Organization item in StationHelper.GetOwnedOrganizations())
    {
        //转换为字符串
        organizationModels.Add(string.Format(@"{{ ID: '{0}', Name: '{1}' }}", item.Organization_Code, item.Organization_Name));
    }
}
@section HeadCssLink
{
    <link href="@Url.Content("~/Content/Styles/ext-patch.css")" rel="stylesheet" type="text/css" />
}
@section HeadScriptLink
{
    <script src="@Url.Content("~/Scripts/ExtJS/locale/ext-lang-zh_CN.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/common.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/model.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Business/NewlyReport/Index.js")" type="text/javascript"></script>
    <script type="text/javascript">
        //用于保存测站信息
        var master_organization =
        [
            @Html.Raw(System.String.Join(",", organizationModels))
        ];

        //用于单位类型存储
        var store_master_organization = null;
    </script>
}
<h2>
    @ViewBag.Title
</h2>
<br />
<div id="data-grid" class="div-grid-box">
</div>
